package com.bicon.base.data.pojo.botu;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import java.io.Serializable;

/**
 * <p>
 * 轮播图表
 * </p>
 *
 * @author zhoutyianqi
 * @since 2018-07-25
 */
public class Banner extends Model<Banner> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 轮播图名称
     */
    @TableField("banner_name")
    private String bannerName;
    /**
     * 轮播图URL
     */
    @TableField("banner_url")
    private String bannerUrl;
    /**
     * 轮播图片
     */
    @TableField("banner_image")
    private String bannerImage;
    /**
     * 轮播排序
     */
    @TableField("banner_sort")
    private Integer bannerSort;
    /**
     * 响应类型：1.链接，2.商品
     */
    @TableField("response_type")
    private Integer responseType;
    /**
     * 轮播开关:0.开，1.关
     */
    @TableField("banner_flag")
    private Integer bannerFlag;
    /**
     * 轮播图描述
     */
    @TableField("banner_context")
    private String bannerContext;
    /**
     * 轮播图位置
     */
    @TableField("banner_position")
    private Integer bannerPosition;
    /**
     * 轮播图模块
     */
    @TableField("banner_modular")
    private Integer bannerModular;
    /**
     * 商品id集合
     */
    @TableField("goods_ids")
    private String goodsIds;
    /**
     * 删除标志：0正常，1删除
     */
    @TableField("logic_delete")
    private String logicDelete;
    /**
     * 创建时间
     */
    @TableField("create_date")
    private Date createDate;
    /**
     * 更新时间
     */
    @TableField("update_date")
    private Date updateDate;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getBannerName() {
        return bannerName;
    }

    public void setBannerName(String bannerName) {
        this.bannerName = bannerName;
    }

    public String getBannerUrl() {
        return bannerUrl;
    }

    public void setBannerUrl(String bannerUrl) {
        this.bannerUrl = bannerUrl;
    }

    public String getBannerImage() {
        return bannerImage;
    }

    public void setBannerImage(String bannerImage) {
        this.bannerImage = bannerImage;
    }

    public Integer getBannerSort() {
        return bannerSort;
    }

    public void setBannerSort(Integer bannerSort) {
        this.bannerSort = bannerSort;
    }

    public Integer getResponseType() {
        return responseType;
    }

    public void setResponseType(Integer responseType) {
        this.responseType = responseType;
    }

    public Integer getBannerFlag() {
        return bannerFlag;
    }

    public void setBannerFlag(Integer bannerFlag) {
        this.bannerFlag = bannerFlag;
    }

    public String getBannerContext() {
        return bannerContext;
    }

    public void setBannerContext(String bannerContext) {
        this.bannerContext = bannerContext;
    }

    public Integer getBannerPosition() {
        return bannerPosition;
    }

    public void setBannerPosition(Integer bannerPosition) {
        this.bannerPosition = bannerPosition;
    }

    public Integer getBannerModular() {
        return bannerModular;
    }

    public void setBannerModular(Integer bannerModular) {
        this.bannerModular = bannerModular;
    }

    public String getGoodsIds() {
        return goodsIds;
    }

    public void setGoodsIds(String goodsIds) {
        this.goodsIds = goodsIds;
    }

    public String getLogicDelete() {
        return logicDelete;
    }

    public void setLogicDelete(String logicDelete) {
        this.logicDelete = logicDelete;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "Banner{" +
        "id=" + id +
        ", bannerName=" + bannerName +
        ", bannerUrl=" + bannerUrl +
        ", bannerImage=" + bannerImage +
        ", bannerSort=" + bannerSort +
        ", responseType=" + responseType +
        ", bannerFlag=" + bannerFlag +
        ", bannerContext=" + bannerContext +
        ", bannerPosition=" + bannerPosition +
        ", bannerModular=" + bannerModular +
        ", goodsIds=" + goodsIds +
        ", logicDelete=" + logicDelete +
        ", createDate=" + createDate +
        ", updateDate=" + updateDate +
        "}";
    }
}
